import { createApp } from 'vue'
import { createPinia } from 'pinia'
import App from './App.vue'
import router from './router'
import './assets/main.css'
import './assets/fonts/iconfont.css'
import 'lib-flexible'
import 'vant/lib/index.css'
import 
  { Tabbar, TabbarItem, Icon, Swipe, SwipeItem, Grid, GridItem, List,
    PullRefresh, NavBar, ActionBar, ActionBarIcon, ActionBarButton,
    Popup, Card, Stepper, Form, CellGroup, Field, Button, SubmitBar,Checkbox  
  } from 'vant'
const app = createApp(App)
app.use(Tabbar)
  .use(TabbarItem)
  .use(Icon)
  .use(Swipe)
  .use(SwipeItem)
  .use(Grid)
  .use(GridItem)
  .use(List)
  .use(PullRefresh)
  .use(NavBar)
  .use(ActionBar)
  .use(ActionBarIcon)
  .use(ActionBarButton)
  .use(Card)
  .use(Popup)
  .use(Stepper)
  .use(Form)
  .use(CellGroup)
  .use(Field)
  .use(Button)
  .use(SubmitBar)
  .use(Checkbox)
app.use(createPinia())
app.use(router)

app.mount('#app')
